const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: { //配置跨域
      [process.env.VUE_APP_BASE_API]: {
        target: 'http://localhost:3000', //需要解决跨域的地址
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      },
    }
  },
})
